package ch.zhaw.cctd.domain.prototype;

import java.io.Serializable;
import java.util.Map;

/**
 * Representiert ein WayPoint Typ und dessen Einstellungen im XML Config File
 * @author Rolf Koch
 * @author Benjamin Felder
 */
public class WayPointPrototype extends Prototype  implements Serializable {

	private static final long serialVersionUID = -3735205148106828126L;

	public WayPointPrototype(Map<String, String> data) {
		super(data);
	}

	public int getY() {
		return this.getIntegerValue("y");
	}

	public int getX() {
		return this.getIntegerValue("x");
	}
	
	public String getNextWayPointId() {
		return this.getValue("next.waypoint.refid");
	}
}
